<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
</script>
    <div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#"   onclick="loadDiv('mainCenterDiv','${ctx}/csm/expImportMaster/index')">入库列表</a>
                </li>
                <li>
                    <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/csm/expImportMaster/form')">入库添加</a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="table-responsive no-border">
                        <div class="datatable-top">
                            <div class="pull-left">
                            	<form:form id="searchForm" modelAttribute="expImportMaster"  onsubmit="return loadDivForm('mainCenterDiv','searchFormDict','${ctx}/csm/expImportMaster/index');" method="post" class="form-inline">
                                    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                                    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
                                    <ul class="ul-form">
                                            <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
                                            <li class="clearfix"></li>
                                    </ul>
                                </form:form>
                            </div>
                        </div>
                        <table id="contentTable" class="table table-bordered table-striped mg-t datatable">
                            <thead>
                                <tr>
                                        <th>主键</th>
                                        <th>入库单号</th>
                                        <th>库存单位</th>
                                        <th>入库日期</th>
                                        <th>供货方</th>
                                        <th>应付款</th>
                                        <th>已付款</th>
                                        <th>附加费</th>
                                        <th>入库类别</th>
                                        <th>记帐标志</th>
                                        <th>记账日期</th>
                                        <th>记账人</th>
                                        <th>上账标志</th>
                                        <th>上账日期</th>
                                        <th>上账人</th>
                                        <th>机构ID</th>
                                        <th>凭证号</th>
                                        <th>纠错入库的单据号</th>
                                        <th>标志</th>
                                        <th>创建人</th>
                                        <th>创建时间</th>
                                        <th>更新人</th>
                                        <th>更新时间</th>
                                        <th>备注信息</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${page.list}" var="expImportMaster">
                                <tr>
                                        <td> ${expImportMaster.id}</td>
                                        <td> ${expImportMaster.documentNo}</td>
                                        <td> ${expImportMaster.storageId}</td>
                                        <td> ${expImportMaster.importDate}</td>
                                        <td> ${expImportMaster.supplier}</td>
                                        <td> ${expImportMaster.accountReceivable}</td>
                                        <td> ${expImportMaster.accountPayed}</td>
                                        <td> ${expImportMaster.additionalFee}</td>
                                        <td> ${expImportMaster.importClass}</td>
                                        <td> ${expImportMaster.accountIndicator}</td>
                                        <td> ${expImportMaster.acctDate}</td>
                                        <td> ${expImportMaster.acctOperator}</td>
                                        <td> ${expImportMaster.tally}</td>
                                        <td> ${expImportMaster.tallyDate}</td>
                                        <td> ${expImportMaster.tallyOperator}</td>
                                        <td> ${expImportMaster.orgId}</td>
                                        <td> ${expImportMaster.voucherNo}</td>
                                        <td> ${expImportMaster.recoveryDocuNo}</td>
                                        <td> ${expImportMaster.delFlag}</td>
                                        <td> ${expImportMaster.createBy.id}</td>
                                        <td> ${expImportMaster.createDate}</td>
                                        <td> ${expImportMaster.updateBy.id}</td>
                                        <td> ${expImportMaster.updateDate}</td>
                                        <td> ${expImportMaster.remarks}</td>
                                    <td>
                                        <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/csm/expImportMaster/form?id=${expImportMaster.id}')" class="btn btn-success btn-xs">修改</a>
                                        <a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该入库吗？',function(){delLoad('mainCenterDiv','${ctx}/csm/expImportMaster/delete?id=${expImportMaster.id}','${ctx}/sys/dict/index')})">删除</a>
                                    </td>
                                </tr>
                            </c:forEach>

                        </table>
                        <div class="pagination">${page}</div>
                    </div>
                </div>
            </section>
        </div>
    </div>